import http from "../../axios/index.js";
import { handleSuccess, handleError } from "../index.js";

export const ChatApi = {
    getFriendList: () => {
        return http.get('/chat/friend/list')
            .then(res => handleSuccess(res, '获取好友列表成功'))
            .catch(error =>handleError(error, '获取好友列表失败', '服务器连接异常'));
    },
}
//获取用户列表